package com.jdrx.sw.sewage.beans.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * sewage_materiel
 */
@Data
@ApiModel(value = "UserMessageSubscribePO", description = "订阅")
public class UserMessageSubscribePO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotEmpty
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    @NotNull
    @ApiModelProperty(value = "站点id", required = true)
    private Long stationId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "订阅类型：订阅类型：0告警事件推送、1运营简报推送", required = true)
    private Integer messageSubscribeType;
}